import request from "@/utils/request";
export function insertGoods(data) {
  return request({
    url: "/goods/insert",
    method: "post",
    data: data
  });
}
export function updateGoods(data) {
  return request({
    url: "/goods/update",
    method: "post",
    data: data
  });
}
export function deleteGoods(data) {
  return request({
    url: "/goods/delete",
    method: "post",
    data: data
  });
}
export function deletesGoods(data) {
  return request({
    url: "/goods/deletes",
    method: "post",
    data: data
  });
}
export function enableGoods(data) {
  return request({
    url: "/goods/enable",
    method: "post",
    data: data
  });
}
export function enablesGoods(data) {
  return request({
    url: "/goods/enables",
    method: "post",
    data: data
  });
}
export function disableGoods(data) {
  return request({
    url: "/goods/disable",
    method: "post",
    data: data
  });
}
export function disablesGoods(data) {
  return request({
    url: "/goods/disables",
    method: "post",
    data: data
  });
}
export function viewGoods(params) {
  return request({
    url: "/goods/view",
    method: "get",
    params: params
  });
}
export function pageGoods(params) {
  return request({
    url: "/goods/page",
    method: "get",
    params: params
  });
}
export function searchGoods(params) {
  return request({
    url: "/goods/search",
    method: "get",
    params: params
  });
}
